<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  
<%@page import="java.util.List"%>
<%@page import="gamble.notice.vo.BoardVO"%>
<%@page import="gamble.notice.vo.PageVO"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>update</title>
</head>
<body>

 <form name="frm2" action="updatePro.htm" method="POST"
    enctype="multipart/form-data">
   <table border="1" width="750" bgcolor="white" bordercolor="#13333" style="border-collapse: collapse;">
       <tr>
         <th bgcolor="yellow">제목</th>
         <td>       
         <c:choose>
         <c:when test="${vo==null}">    
          
            <input type="text" name="subject" size="20"/>
         </c:when>
         
         <c:otherwise>        
  
           <input type="text" name="subject" 
                  value="${vo.subject}"/>
           <input type="hidden" name="num" value="${vo.num}"/>
           <input type="hidden" name="ref" value="${vo.ref}"/>
           <input type="hidden" name="re_step" value="${vo.re_step}"/>
           <input type="hidden" name="re_level" value="${vo.re_level}"/>
           <input type="hidden" name="currentPage" value="${pv.currentPage}" />   
        </c:otherwise>
         </c:choose>
         
         </td>
       </tr>
   
       <tr>
         <th bgcolor="yellow">글쓴이</th>
         <td><input type="text" name="writer" size="20" value="${vo.writer}"/></td>
       </tr>
       
       <tr>
         <th bgcolor="yellow">비밀번호</th>
         <td><input type="password" name="passwd" size="20"/></td>
         
       </tr>
       
       <tr>
         <th bgcolor="yellow">이메일</th>
         <td><input type="text" name="email" size="20"/></td>
       </tr>
       
       
       
       <tr>
        <th bgcolor="yellow">내용</th>
        <td><textarea name="content" rows="10" cols="70">${vo.content}</textarea></td>
       </tr>
       
       <tr>
      <td bgcolor="yellow">파일첨부</td>
      <td><input type="file" name="upload"/></td>
     </tr>  
     
       <tr>
        <td colspan="2" align="center">
           
           <input type="submit" value="글쓰기"/>
           <input type="reset" value="취소"/>
        </td>
       </tr>
       
     
   </table>
  </form>
</body>
</html>




